import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;

import static org.quartz.JobBuilder.*;
import static org.quartz.TriggerBuilder.*;
import static org.quartz.SimpleScheduleBuilder.*;

public class TriggerRunner {

    public static void main(String[] args) {



        try {
            // Grab the Scheduler instance from the Factory
            Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();

            // and start it off
            scheduler.start();

            scheduler.shutdown();

        } catch (SchedulerException se) {
            se.printStackTrace();
        }


//        JobDetail  jobDetail = JobBuilder.newJob(SimpleJob.class).withIdentity("job1", "group1").build();
//        Trigger trigger = TriggerBuilder.newTrigger().withIdentity("trigger1", "triggerG1").startNow().withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInSeconds(40).repeatForever()).build();


    }

}
